/**
 * Created by Administrator on 2016/5/16.
 */
function Map(){
    var map = new BMap.Map("baidu_Map");          // 创建地图实例
    var point = new BMap.Point(116.404, 39.915);  // 创建点坐标
    map.centerAndZoom(point, 12);                 // 初始化地图，设置中心点坐标和地图级别
    //map.enableScrollWheelZoom();   //启用滚轮放大缩小，默认禁用
    //map.enableContinuousZoom();    //启用地图惯性拖拽，默认禁用
    var local = new BMap.LocalSearch(map, {
        renderOptions:{map: map}
    });
    local.search($("#weddingAddress4MapSearch").val());
    var marker = new BMap.Marker(point); //创建marker对象
    //marker.enableDragging(); //marker可拖拽
    marker.addEventListener("click", function(e){
        searchInfoWindow.open(marker);
    })
}
function Map2(){
    var map = new BMap.Map("allmap2");          // 创建地图实例
    var point = new BMap.Point(116.404, 39.915);  // 创建点坐标
    map.centerAndZoom(point, 15);                 // 初始化地图，设置中心点坐标和地图级别
    //map.enableScrollWheelZoom();   //启用滚轮放大缩小，默认禁用
    //map.enableContinuousZoom();    //启用地图惯性拖拽，默认禁用
    var local = new BMap.LocalSearch(map, {
        renderOptions:{map: map}
    });
    local.search($("#weddingAddress4MapSearch").val());
    var marker = new BMap.Marker(point); //创建marker对象
    //marker.enableDragging(); //marker可拖拽
    marker.addEventListener("click", function(e){
        searchInfoWindow.open(marker);
    })
}
/**
var picList = [
   {
       content: "./image/loveIsAnswer/lunbo.jpg"
   },
   {
       content:  "./image/loveIsAnswer/lunbo.jpg"
   },
   {
       content: "./image/loveIsAnswer/lunbo.jpg"
   }
];
var islider1 = new iSlider({
   data: getImgPaths(),
   dom: document.getElementById("lunbo-animation"),
   duration: 2000,
   animateType: 'depth',
   isAutoplay: false,
   isLooping: true
});

function getImgPaths(){
	var imgs = $("#lunbo-animation").find("img");
	var picList = new Array();
	for(var i=0; i<imgs.size(); i++){
		var path = new Object();
		path.content = imgs.get(i).src;
		picList[i] = path;
	}
	return picList;
}**/